| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import chai from 'chai'; |
||
| 4 | describe('isString function', () => { |
||
| 5 | it('should be false', () => { |
||
| 6 | let fixtures = [ |
||
| 7 | 1, |
||
| 8 | false, |
||
| 9 | 1.2, |
||
| 10 | [], |
||
| 11 | {} |
||
| 12 | ]; |
||
| 13 | |||
| 14 | fixtures.forEach(el => { |
||
| 15 | chai.expect(isString(el)).to.equal(false); |
||
| 16 | }); |
||
| 17 | }); |
||
| 18 | it('should be true', () => { |
||
| 19 | let fixtures = [ |
||
| 20 | 'string', |
||
| 21 | 'string' |
||
| 22 | ]; |
||
| 23 | |||
| 24 | fixtures.forEach(el => { |
||
| 25 | chai.expect(isString(el)).to.equal(true); |
||
| 26 | }); |
||
| 27 | }); |
||
| 28 | }); |
||
| 29 |